import 'package:common/router.dart';
import 'package:get/get.dart';

import '../route.dart';

class oneLogic extends GetxController {
  RxInt count = 0.obs;

  ///跳转到跨页面
  void toJumpTwo() {
    if (count.value % 2 == 0)
      open(RouteConfig.featureTwo);
    else
      open("app.AT");
  }

  ///自增
  void increase() {
    ++count.value;
    toJumpTwo();
  }
}
